/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.generate.entity.EC_VIEW_GENERATE
   Module Description   :

   Date Created      : 2010/1/18
   Original Author   : feeling.wang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.generate.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author feeling.wang
 * 
 */
@Entity
@Table(name = "EC_VIEW_PROMOTION_ADVERTISE")
public class ViewPromotionAdvertise {
	private static final long serialVersionUID = -7690177107652097206L;

	@Id
	// @GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_view_promotion_advertise")
	// @SequenceGenerator(name = "seq_ec_view_promotion_advertise", sequenceName = "SEQ_EC_VIEW_PROMOTION_ADVERTISE")
	@Column(name = "ID")
	private int id;

	@Column(name = "START_DATE", nullable = false)
	private Date startDate;

	@Column(name = "END_DATE", nullable = false)
	private Date endDate;

	@Column(name = "MODIFY_DATE", nullable = false)
	private Date modifyDate;

	@Column(name = "ADVERTISE_NAME", length = 10, nullable = false)
	private String advName;

	@Column(name = "ADVERTISE_TYPE", length = 20, nullable = false)
	private String advType;

	@Column(name = "ADVERTISE_TARGET")
	private String advTarget;

	@Column(name = "MAIN_CATE_ID")
	private Long mainCateId;

	@Column(name = "CHILD_CATE_ID")
	private Long childCateId;

	@Column(name = "CONTENTS")
	private String contents;

	@Column(name = "show_seq")
	private int showSeq;

	public String getAdvName() {
		return advName;
	}

	public String getAdvTarget() {
		return advTarget;
	}

	public String getAdvType() {
		return advType;
	}

	public Long getChildCateId() {
		return childCateId;
	}

	public String getContents() {
		return contents;
	}

	public Date getEndDate() {
		return endDate;
	}

	public int getId() {
		return id;
	}

	public Long getMainCateId() {
		return mainCateId;
	}

	public int getShowSeq() {
		return showSeq;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setAdvName(String advName) {
		this.advName = advName;
	}

	public void setAdvTarget(String advTarget) {
		this.advTarget = advTarget;
	}

	public void setAdvType(String advType) {
		this.advType = advType;
	}

	public void setChildCateId(Long childCateId) {
		this.childCateId = childCateId;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setMainCateId(Long mainCateId) {
		this.mainCateId = mainCateId;
	}

	public void setShowSeq(int showSeq) {
		this.showSeq = showSeq;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
}